#include "lc_cleaner_Operator.h"

void 
cleaner::handlePP(BFT::messages::PPWrapper * data, unsigned long dataSize)
{
  donePP(data, dataSize);
}

BFT::messages::PPWrapper * 
cleaner::gencleanPPRequest()
{
  return NULL;
}

void 
cleaner::handleRC(BFT::messages::RCWrapper * data, unsigned long dataSize)
{
  boost::shared_ptr<std::vector<boost::shared_ptr<BFT::messages::RequestCore> > > dataVec(new std::vector<boost::shared_ptr<BFT::messages::RequestCore> > ());
  boost::shared_ptr<BFT::messages::RequestCore> ptr(data->_rc);
  //std::cerr << "Cleaner: " << ptr.get() << std::endl;
  //std::cerr << "Cleaner: " << ptr->getEntry().get() << std::endl;
  dataVec->push_back(ptr);
  BFT::messages::VecWrapper * vw = new BFT::messages::VecWrapper();
  vw->_vec = dataVec;
  doneRC(vw, sizeof(vw));
  delete(data);
}

BFT::messages::RCWrapper * 
cleaner::gencleanRCRequest()
{
  return NULL;
}
